Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <head> <style> table, th, td { border: 1px solid black; } </style> </head> <body> <p>Click the "Try it" button to change the border-spacing property of the TABLE element:</p> <button onclick="myFunction()">Try it</button> <table id="myTABLE"> <tr> <th>Name</th> <th>Age</th> </tr> <tr> <td>Emil</td> <td>9</td> </tr> <tr> <td>Tobias</td> <td>7</td> </tr> <tr> <td>Linus</td> <td>2</td> </tr> </table> <script> function myFunction() { document.getElementById("myTABLE").style.borderSpacing = "15px"; } </script> </body> <!-- Mirrored from www.w3schools.com/cssref/tryit.asp?filename=trycss_js_border-spacing by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:51:05 GMT --> </html>
Result:
Try it Yourself - © w3schools.com